package com.rxmvp.rxjavademo.RxRetrofit.Response;

import com.google.gson.annotations.Expose;

import java.util.List;

/**
 * Created by Administrator on 2017/1/12.
 */

public class BaseResponse<T> {

    @Expose
    private String reason;
    @Expose
    private int error_code;
    @Expose
    private Result<T> result;


    public int getError_code() {
        return error_code;
    }

    public void setError_code(int error_code) {
        this.error_code = error_code;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Result<T> getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }

    public class Result<T>{
        @Expose
        private String stat;
        @Expose
        private List<T> data;

        public String getStat() {
            return stat;
        }

        public void setStat(String stat) {
            this.stat = stat;
        }

        public List<T> getData() {
            return data;
        }

        public void setData(List<T> data) {
            this.data = data;
        }
    }
}
